{
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\begin{tabular}{l*{7}{c}}
\toprule
  & & \multicolumn{2}{c}{By Relationship Status} & \multicolumn{2}{c}{By Gender} & \multicolumn{2}{c}{By Specialty Salary} \\ \cmidrule(lr){3-4}\cmidrule(lr){5-6}\cmidrule(lr){7-8}
 & All & Non-Single & Single & Female & Male & $ \leq $ \$229,000  & $ > $ \$229,000  \\ 
 &(1)&(2)&(3)&(4)&(5)&(6)&(7) \\ \midrule
\addlinespace
$\beta^{ER}$   &    0.995\sym{*}  &    2.236\sym{***}&   -1.538\sym{*}  &    1.041         &    0.896         &    1.433\sym{*}  &    0.777         \\
                &  (0.539)         &  (0.669)         &  (0.880)         &  (0.755)         &  (0.781)         &  (0.732)         &  (0.797)         \\
\addlinespace
$\beta^{COL}$  &   -1.073\sym{**} &   -1.087         &   -1.058        &   -0.972         &   -1.443\sym{*}  &   -0.690         &   -1.238\sym{*}  \\
                &  (0.485)         &  (0.663)         &  (0.749)         &  (0.679)         &  (0.753)         &  (0.713)         &  (0.690)         \\
                
\addlinespace
\multicolumn{8}{l}{Diff. P-value \emph{[q-value]:} }\\
\hspace*{0.2cm} ER        &                  &              \multicolumn{2}{c}{0.001 \emph{[0.030]}}              &                  \multicolumn{2}{c}{0.894 \emph{[0.974]}}                &                 \multicolumn{2}{c}{0.544 \emph{[0.954]}}              \\
\hspace*{0.2cm} COL        &                  &            \multicolumn{2}{c}{0.977 \emph{[0.977]}}               &              \multicolumn{2}{c}{0.642 \emph{[0.954]}}                &                 \multicolumn{2}{c}{0.580 \emph{[0.954]}}               \\
\\
\midrule
%Pseudo $R^2$    &    0.025         &    0.047         &    0.026         &    0.043         &    0.032         &    0.033         &    0.032         \\
Observations    &    1,080         &      698         &      382         &      560         &      520         &      549         &      531         \\
\bottomrule
\end{tabular}
}
